package com.sky.controller.user;

import com.sky.entity.Category;
import com.sky.result.Result;
import com.sky.service.impl.UserDishServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserCategoryController {
    @Autowired
    private UserDishServiceImpl userDishService;

    @GetMapping("/user/category/list")
    public Result geCategoryList() {
        List<Category> result = userDishService.getCategoryList();
        return Result.success(result);
    }


}
